package com.ruoyi.procurement.mapper;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.procurement.domain.PsOutbound;
import com.ruoyi.procurement.domain.vo.PsOutboundVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

/**
 * 物品出库Mapper接口
 * 
 * @author ruoyi
 * @date 2023-10-10
 */
public interface PsOutboundMapper extends BaseMapper<PsOutbound>
{
    /**
     * 查询物品出库
     * 
     * @param id 物品出库主键
     * @return 物品出库
     */
    public PsOutbound selectPsOutboundById(String id);

    /**
     * 查询物品出库列表
     * 
     * @param psOutbound 物品出库
     * @return 物品出库集合
     */
    public List<PsOutbound> selectPsOutboundList(@Param("psOutbound") PsOutbound psOutbound, @Param("order") String order);

    /**
     * 新增物品出库
     * 
     * @param psOutbound 物品出库
     * @return 结果
     */
    public int insertPsOutbound(PsOutbound psOutbound);

    /**
     * 修改物品出库
     * 
     * @param psOutbound 物品出库
     * @return 结果
     */
    public int updatePsOutbound(PsOutbound psOutbound);

    /**
     * 删除物品出库
     * 
     * @param id 物品出库主键
     * @return 结果
     */
    public int deletePsOutboundById(String id);

    /**
     * 批量删除物品出库
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePsOutboundByIds(String[] ids);

    void deleteByPsGoodsId(String goodsId);

    public List<PsOutbound> selectTodayPsOut(@Param("date") Date date,@Param("psGoodsId")  String psGoodsId,@Param("psUnitId")  String psUnitId);
}
